package com.fh.mappers;

import com.fh.entity.po.Org;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 描述:
 * Author:袁亚强
 * Date:2021/12/518:05
 */
@Mapper
public interface OrgMapper {
    void upOrg(Org org);

    @Insert("insert into t_shop_org (name,isdel,createDate) value(#{name},#{isdel},#{createDate})")
    void addOrg(Org org);

    @Select("select * from t_shop_org where isdel=0")
    List<Org> queryOrg();

    @Select("select * from t_shop_org")
    List<Org> queryOrgAll();

}
